package com.mrjy.common.enums;

public enum ResultEnum {

    SUCCESS(0, "成功"),
    
    ERROR(1,"系统错误"),

    PARAM_ERROR(400, "参数不正确"),
    
    NO_DATA_EXPORT(401,"无可导出数据"),
    
    NOT_LOGIN(-1, "用户未登录"),
    
    POST_NOT_EXIST(100,"帖子不存在"),
    
    INSERT_ERROR(200,"插入失败"),
    
    UPDATE_ERROR(201,"更新失败"),
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

	public Integer getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}
    
}
